@charset "utf-8";
$font-size: 28px; //定义根字体大小
@function r($px) {
    @return $px/$font-size*1rem;
}
.web {
    width: 100%;
    height: 100%;
    header {
        width: 100%;
        height: r(90px);
        position: relative;
        top: 0;
        background: #f7f7f7;
        border-bottom: 1px solid #c1c1c1;
        padding: r(14px) r(20px) r(16px);
        line-height: r(60px);
        i {
            font-size: r(38px);
            color: #848689;
            font-weight: bold;
        }
        .nav-name {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            font-size: r(35px);
            color: #333333;
        }
        .record {
            font-size: r(28px);
            color: #666666;
        }
    }
    .content {
        background: #ebebeb;
        width: 100%;
        position: absolute;
        top: r(90px);
        bottom: r(100px);
        overflow: hidden;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        padding: r(29px) r(20px) 0;
        .time_bg {
            width: r(80px);
            height: r(35px);
            border-radius: r(5px);
            background-color: #c9cecf;
            margin: 0 auto;
            font-size: r(24px);
            color: white;
            text-align: center;
            line-height: r(35px);
        }
        .chat {
            margin-top: r(40px);
            margin-bottom: r(20px);
            position: relative;
            .client {
                display: inline-block;
                width: r(90px);
                height: r(90px);
                img {
                    width: 100%;
                    height: 100%;
                }
            }
            .shop_word,
            .client_word {
                width: r(106px);
                height: r(75px);
                line-height: r(75px);
                display: inline-block;
                font-size: r(30px);
                border-radius: r(15px);
                text-align:center;
            }
            .client_word {
                background: white;
                color: #666666;
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
            }
            .shop_word {
                background: #d62d31;
                color: white;
                position:absolute;
                top:0;
                bottom:0;
                right:r(105px);
                margin:auto;
            }
            .left {
                margin-top: r(8px);
                height: r(75px);
                img {
                    height: 100%;
                }
            }
            .box {
                width: r(440px);
                height: r(150px);
                background: #d62d31;
                display: inline-block;
                font-size: r(30px);
                border-radius: r(15px);
                padding: r(16px) 0 r(16px) r(16px);
                color: white;
                .img {
                    display: inline-block;
                    width: r(120px);
                    height: r(120px);
                    margin-right: r(10px);
                    img {
                        width: 100%;
                        height: 100%;
                    }
                }
                .list-name {
                    font-size: r(27px);
                    max-width: r(280px);
                    max-height: r(80px);
                    line-height: r(40px);
                    word-break: break-all;
                    white-space: normal;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    a {
                        color: white;
                    }
                }
                .selling-price {
                    em {
                        white-space: nowrap;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        display: inline-block;
                        vertical-align: bottom;
                        max-width: r(100px);
                    }
                }
            }
        }
    }
    //底部
    .foot {
        width: 100%;
        height: r(100px);
        position: absolute;
        bottom: 0;
        border-top: r(1px) solid #e1e2e4;
        font-size: r(20px);
        color: #666666;
        text-align: center;
        padding: r(15px);
        line-height: r(100px);
        .foot-nav {
//          display:inline-block;
            input[type=text] {
                width: r(435px);
                height: r(69px);
                border: r(1px) solid #c1c1c1;
                border-radius: r(5px);
                padding: r(20px);
                font-size: r(28px);
                color: #999999;
                margin-right: r(26px);
            }
            .biaoqing {
                width: r(51px);
                height: r(51px);
                margin-right: r(26px);
                img {
                    width: 100%;
                    height: 100%;
                }
            }
            .tianjia {
                width: r(55px);
                height: r(50px);
                img {
                    width: 100%;
                    height: 100%;
                }
            }
        }
    }
}
//媒体查询
@media screen and (min-width:320px) {
    html {
        font-size: 14px;
    }
}
@media screen and (min-width:360px) {
    html {
        font-size: 16px;
    }
}
@media screen and (min-width:375px) {
    html {
        font-size: 16.5px;
    }
}
@media screen and (min-width:414px) {
    html {
        font-size: 18px;
    }
}